package com.mybatis_plus.demo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

@TableName(value = "sys_user")
public class User {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String name;
    private int age;
    @TableLogic
    @TableField(value = "isDel")
    private short isDel;
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(value = "createAcc")
    private String createAcc;
    @TableField(value = "updateTime")
    private Date updateTime;
    @TableField(value = "updateAcc", fill = FieldFill.UPDATE)
    private String updateAcc;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public short getIsDel() {
        return isDel;
    }

    public void setIsDel(short isDel) {
        this.isDel = isDel;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateAcc() {
        return createAcc;
    }

    public void setCreateAcc(String createAcc) {
        this.createAcc = createAcc;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateAcc() {
        return updateAcc;
    }

    public void setUpdateAcc(String updateAcc) {
        this.updateAcc = updateAcc;
    }
}
